﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Lesson
{
    public partial class add_new_Talking_content : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"]);
            string name = Request.QueryString["name"];
            var get_talk = new TblLessonTalkingController().FetchAll().Where(x => x.LessonId == id).Single();
            new TblLessonTalkingContentController().Insert(name, get_talk.TalkId, "", "", "");
        }
    }
}